package com.online.olsrootserver.service;

import com.online.olsrootserver.service.impl.CustomerChatServerImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * Created by littleheng on 2018/5/8
 */
@FeignClient(value = "customer-chat-server", fallback = CustomerChatServerImpl.class)
public interface CustomerChatServer {

    /**
     * 文本消息处理服务接口
     */
    @RequestMapping(value = "/textMessageServer", method = RequestMethod.POST)
    Map textMessageServer(@RequestBody Map map);

    /**
     * 图片消息处理服务接口
     */
    @RequestMapping(value = "/imgMessageServer", method = RequestMethod.POST)
    Map imgMessageServer(@RequestBody Map map);

}
